package com.qf.controller;

import com.qf.service.AdminUserService;
import com.qf.service.UserService;
import com.qf.utils.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/AdminUser")
public class AdminUserController {
    @Autowired(required = false)
    AdminUserService adminUserService;
@GetMapping("/findAllUser")
    public ResultMsg findAllUser(){
        return adminUserService.findAll();
    }
    @GetMapping("/delUser")
    public ResultMsg deluser(Integer uid){
    return adminUserService.del(uid);
    }

}
